package gxb.test05;

import java.util.Scanner;

public class ActivitySuggestion {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入当前的气温：");
        int temperature = scanner.nextInt();

        boolean hot = temperature >= 80;
        boolean mild = temperature >= 60 && temperature < 80;
        boolean cool = temperature >= 40 && temperature < 60;
        boolean cold = temperature < 40;

        if (hot) {
            System.out.println("适合的活动是游泳");
        } else if (mild) {
            System.out.println("适合的活动是打网球");
        } else if (cool) {
            System.out.println("适合的活动是打高尔夫");
        } else if (cold) {
            System.out.println("适合的活动是滑雪");
        } else {
            System.out.println("Visit our shops!");
        }
    }
}
